/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bionic.ce.managedbeans;

import com.bionic.ce.entities.Currency;
import com.bionic.ce.entitybeans.currency.CurrencyFacadeLocal;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean (name="currencyManagedBean")
@SessionScoped
public class CurrencyManagedBean implements Serializable{

    public CurrencyManagedBean() {
    }
    
    @EJB
    private CurrencyFacadeLocal currencyEJB;
    
    List<Currency> currencyList = new ArrayList<Currency>();

    public CurrencyFacadeLocal getCurrencyEJB() {
        return currencyEJB;
    }

    public void setCurrencyEJB(CurrencyFacadeLocal currencyEJB) {
        this.currencyEJB = currencyEJB;
    }

    public List<Currency> getCurrencyList() {
        return currencyEJB.findAll();
    }

    public void setCurrencyList(List<Currency> currencyList) {
        this.currencyList = currencyList;
    }
    
    
}
